<?php echo $this->Html->css(array('registro'));?>
<?php echo $this->Html->script(array('mask')); ?>
<script type="text/javascript">
jQuery(function($){
	   $("#UsuarioCpf").mask("999.999.999-99", {placeholder:" "});
	   $("#UsuarioDdd").mask("99", {placeholder:" "});	   
	});
</script>
<div class="users form"> 
<p class="formtitle"><?php echo __('registrar')?></p>
<fieldset>
    <legend class="formtitle"><?php echo __('texto_registrar')?></legend>
<?php echo $this->Form->create('Usuario', array('url'=>array('controller'=>'registros', 'action'=>'/index')));
	echo $this->Form->input('nome', array('div'=>'formfield', 'error' => array(
										'notempty' =>__('notempty', true))));
	echo $this->Form->input('email', array('div'=>'formfield', 'error' => array(
										'email' => __('validacao_email', true),
										'email_igual' => __('email_igual'),
										'unique'=>''),
									'label'=>__('email')));
	echo $this->Form->input('senha', array('div'=>'formfield', 'error' => array(
										'notempty' =>__('notempty', true),
										'confirmacao' => __('senhas_diferentes')),
										'type'=>'password'));
	echo $this->Form->input('senha_confirmacao', array('div'=>'formfield', 'error' => array(
										'senhasIguais' =>__('senhas_diferentes', true),
										'senhas_diferentes' => __('senhas_diferentes')),
									'label'=>__('confirmacao_senha'),
									'type' => 'password'));
	echo $this->Form->input('cpf', array('div'=>'formfield', 'error' => array(
										'notempty' =>__('notempty', true)),
									'label'=>__('CPF')));
	echo $this->Form->input('endereco', array('div'=>'formfield', 'error' => array(
										'notempty' =>__('notempty', true)),
									'label'=>__('Endereço')));
	echo $this->Form->input('numero', array('div'=>'formfield', 'error' => array(
										'notempty' =>__('notempty', true)),
									'label'=>__('Número')));
	echo $this->Form->input('complemento', array('div'=>'formfield', 'label'=>__('Complemento')));
	echo $this->Form->input('bairro', array('div'=>'formfield', 'error' => array(
										'notempty' =>__('notempty', true)),
									'label'=>__('bairro')));
	echo $this->Form->input('cep', array('div'=>'formfield', 'error' => array(
										'numeric' =>__('numeric', true)),
									'label'=>__('CEP')));
	echo $this->Form->input('cidade', array('div'=>'formfield', 'error' => array(
										'notempty' =>__('notempty', true)),
									'label'=>__('Cidade')));
	echo $this->Form->input('uf', array('div'=>'formfield', 'error' => array(
										'notempty' =>__('notempty', true)),
									'label'=>__('Estado'),
									'options'=>$uf,
									'empty'=>"-- Escolha uma opção -- "));
	echo $this->Form->input('ddd', array('div'=>'formfield', 'error' => array(
										'notempty' =>__('notempty', true)),
									'label'=>__('DDD')));
	echo $this->Form->input('telefone', array('div'=>'formfield', 'error' => array(
										'notempty' =>__('notempty', true)),
									'label'=>__('Telefone'),
									'type'=>'text'));
	?>
	</fieldset> 
	<br>
	<?php echo $this->Form->submit(__('registrar'), array('div'=>'sub')); ?>
</div>